//
//  MainModelAPI.m
//  Pods-SevenFMMain_Example
//
//  Created by seven on 2018/4/25.
//

#import "MainModelAPI.h"
#import "LXTabBarController.h"
#import "LXMiddleView.h"
#import "LXNavigationBar.h"
#import "LXTabBar.h"

@implementation MainModelAPI

+ (UITabBarController *)rootTabBarController {
    return [LXTabBarController shareInstance];
}

+ (void)addChildVC:(UIViewController *)vc normalImageName:(NSString *)normalImageName selectedImageName:(NSString *)selectedImageName isRequiredNavController:(BOOL)isRequired {
    [[LXTabBarController shareInstance] addChildVC:vc normalImageName:normalImageName selectedImageName:selectedImageName isRequiredNavController:isRequired];
}

+ (void)setTabbarMiddleBtnClick:(void (^)(BOOL))middleClickBlock {
    LXTabBar *tabbar = (LXTabBar *)[LXTabBarController shareInstance].tabBar;
    tabbar.middleClickBlock = middleClickBlock;
}

+ (void)setNavBarGlobalBackGroundImage:(UIImage *)globalImg {
    [LXNavigationBar setGlobalBackGroundImage:globalImg];
}

+ (void)setNavBarGlobalTextColor:(UIColor *)globalTextColor andFontSize:(CGFloat)fontSize {
    [LXNavigationBar setGlobalTextColor:globalTextColor andFontSize:fontSize];
}

+ (UIView *)middleView {
    return [LXMiddleView middleView];
}
@end
